home *** CD-ROM | disk | FTP | other *** search
- tell application "iView mediaPro"
-
-
- (* new *)
- -- new window
-
-
- (* open *)
- -- NOTE:
- -- protected catalogs will not open unless you provide a password
- -- otherwise the script will produce an error
-
- -- open alias "my Disk:"
- -- open alias "my Disk:my Image"
- -- open alias "my Disk:my iView catalog"
- -- open alias "my Disk:my iView catalog" with password "my password"
- -- open (choose file) -- opens a single catalog file, or adds an image to a catalog
- -- open (choose folder) -- import a single folder or volume to a catalog
-
-
- (* close *)
- -- NOTE:
- -- closing opened windows with saving will only save modified windows that already have a catalog
- -- otherwise changes are ignored. to make sure a window has a catalog check that it's
- -- path is not empty
-
- -- close window 1 with saving
- -- close every window
-
-
- (* save *)
- -- NOTE 1:
- -- saving opened windows will only work for windows that already have a catalog
- -- otherwise an error is returned, in which case you have to use the "in" parameter
- -- to specify a file
- -- NOTE 2
- -- the file parameter is ignored when you try to save multiple windows
-
- -- save window 1
- -- save window 1 in file "mac os:test 1"
-
-
- (* print *)
- -- NOTE:
- -- printing uses the currently active view and the print settings for that view
- -- at the time the catalog was last saved.
-
- -- set view of window 1 to content view
- -- print window 1
-
-
- (* quit - see notes on close *)
- -- quit with saving
-
-
- (* select - see notes on close *)
- -- select window 2
- -- select every object of every window
-
-
- (* move *)
- -- tell window 1
- -- move object 3 to the end
- -- move (every object whose name contains "clio") to the beginning
- -- move object 3 to before object 7
- -- move object 1 to after object 2 of window 2
- -- move object 1 to after object 3 of window 2
- -- move object 1 to beginning of window 2
- -- move object 1 to end of window 2
- -- end tell
- -- move (every object whose name contains "clio") of window "bimbi" to the beginning of window "catalog #1"
-
- (* run slide show *)
- -- run slide show of window 1
-
-
- (* export annotations *)
- -- tell (every object whose media type is image)
- -- export annotations with do resource fork and do data fork
- -- end tell
-
-
- (* make/exports *)
- -- make HTML gallery with options "my defaults" saving in alias "my disk:my folder:" -- folder
- -- make TEXT table with options "my defaults" saving in file "my disk:my file" -- file
-
- -- here is a complete case:
- -- tell window 1
- -- try
- -- with timeout of 3600 seconds -- allow 1 hour for the export (this must be a big catalog!)
- -- make HTML gallery with options "my defaults" saving in alias "Media:temp folder"
- -- make TEXT data table with options "my defaults" saving in alias "Media:temp folder"
- -- end timeout
- -- on error error_message number error_number
- -- display dialog ("Error number: " & (error_number as text)) buttons {"OK"} default button 1 giving up after 5
- -- end try
- -- end tell
-
-
- -- tell window 1
- -- convert images with options "JPEG black & white" saving in alias "Media:temp folder:"
- -- end tell
- end tell